import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'userManage-';

export default {
    path: '/userManage',
    name: 'userManage',
    redirect: {
        name: `${pre}index`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'index',
            name: `${pre}index`,
            meta: {
                ...meta,
                title: '用户管理',
                closable: false
            },
            component: () => import('@/pages/userManage/index')
        },
        {
            path: 'company',
            name: `${pre}company`,
            meta: {
                ...meta,
                title: '单位管理',
                closable: false
            },
            component: () => import('@/pages/userManage/company')
        },
        {
            path: 'user',
            name: `${pre}user`,
            meta: {
                ...meta,
                title: '用户管理',
                closable: false
            },
            component: () => import('@/pages/userManage/user')
        }
    ]
};
